package com.situ.crm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.situ.crm.entity.User;
import com.situ.crm.util.UserContext;

@Controller
public class IndexController {
	
	@RequestMapping(value="/index")
	public String index(Model model) {
		User user = (User) UserContext.session.getAttribute(UserContext.USER_IN_SESSION);
		model.addAttribute("user",user);
		return "index";
	}
	
	@RequestMapping(value="/index_v3")
	public String index_v3() {
		return "index_v3";
	}
}
